package day03;
//此类是用于验证关系运算符的测试demo
public class RelationshipDemo {
    public static void main(String[] args) {
        //关系运算符：>、<、==、!=、>=、<=
        //关系运算符的结果是boolean类型
        int a = 5;
        int b = 10;
        int c = 5;
        boolean r1 = a <= b;    //true
        boolean r2 = b <= c;    //false
        boolean r3 = a == c;    //true
        System.out.println(r1);     //输出true
        System.out.println(r2);     //输出false
        System.out.println(r3);     //输出true

        System.out.println(b == c); //输出false
        System.out.println(a != c); //输出false
        System.out.println(a >= c); //输出true

    }
}
